package net.huashitong.taskGroup.databean;

public enum GradePointHeaders {

    taskId("taskId","考核任务单号"),                  //考核任务单号
    checkType("checkType","考核类别"),                //考核类别，个人，单位，督查组
    checkObject("checkObject","考核对象"),              //考核对象
    taskName("taskName","考核任务名"),                //考核任务名
    soucre("soucre","分数"),                          //分数
    rank("rank","排名"),                              //考核内容
    taskContent("taskContent","考核内容"),            //考核内容
    updDate("updDate","考核更新时间")                 //考核更新时间
    ;
    private String code;
    private String value;
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    GradePointHeaders(String code, String value) {
        this.code = code;
        this.value = value;
    }
    public static GradePointHeaders getValues(String code)
    {
        for (GradePointHeaders item:values())
        {
            if(item.getCode().equals(code))
            {
                return item;
            }
        }
        return  null;
    }
}
